Post

Replies

Boosts

Views

Activity

NSPropertyListXMLFormat_v1_0 option for dataWithPropertyList complaining of size limit in iOS 14.4
I use dataWithPropertyList with NSPropertyListXMLFormat_v1_0 to convert local data in an NSDictionary to NSData to be sent to Server side as a .plist (readable as xml for troubleshooting). Ever since iOS 14.4, the process fails at dataWithPropertyList, with errors as: "Property list invalid for format: 100 (Too many nested arrays or dictionaries)" and in iOS 14.7 a little more verbose: "Property list invalid for format: 100 (Too many nested arrays or dictionaries please use kCFPropertyListBinaryFormat_v1_0 instead which supports references)" The error only takes place when running in iOS 14.4 and above (regardless of actual iOS Device or Simulator). Issue doesn't take place when using same source code but compiling for any iOS 14.3 and lower. Using the Binary option as the latest verbose error suggests does work. Ironically the resulted NSData is larger than original xml based one, and I lose the ability to read xml server side. Anyone else experienced these issues? Apparently Apple is aware of the issue given they updated the verbose error message in iOS 14.7. Do they intend to fix it so it works as it does in iOS 14.3 and lower? Or are there other suggestions on working around the issue so I can still have the xmls? Alternative methods? Regards,
1
0
830
Aug ’21